package com.tanggh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import com.tanggh.dao.CityDao;
import com.tanggh.dao.GenericDao;
import com.tanggh.entity.City;
import com.tanggh.service.CityService;

@Service
public class CityServiceImpl extends GenericServiceImpl<City> implements CityService {

	private CityDao cityDao;
	
	@Autowired
	@Qualifier("cityDaoImpl")
	@Override
	protected void setGenericDao(GenericDao<City> genericDao) {
		this.genericDao = genericDao;
		this.cityDao = (CityDao)genericDao;
	}

	@Override
	public List<City> getSortCity() {
		return cityDao.getSortCity();
	}
}
